﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="ImportExamResultApplication._Default"
    EnableEventValidation="false" %>

<%@ Register Src="~/Controls/MapFieldsControl.ascx" TagName="MapFields" TagPrefix="uc" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="Scripts/knockout-2.2.1.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="import-dtdh">
        <h2>
            Import exam result tool
        </h2>
        <fieldset>
            <legend>Select file to import</legend>
            <div>
                <asp:FileUpload ID="fileUpload" runat="server" />
                <asp:Button ID="btnSend" runat="server" Text="Send" />
                <asp:Button ID="btnStandard" runat="server" Text="Standard" Enabled="false" />
                <asp:Button ID="btnExport" runat="server" Text="Export to Excel" Enabled="false" />
                <asp:Button ID="btnExecute" runat="server" Text="Execute" Enabled="false" />
                <asp:Button ID="btnMapField" runat="server" Text="Map Fields" OnClientClick="loadColumnNames(); return false;" />
            </div>
            <asp:Panel ID="pnlSheet" runat="server" Visible="false">
                <div>
                    <span>Sheet name: </span>
                    <asp:DropDownList ID="ddlSheetName" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnLoadSheet" runat="server" Text="Load" />
                </div>
                <div>
                    <asp:CheckBox ID="chkMergeSheet" runat="server" Text="Merge Sheet" />
                    <asp:CheckBox ID="chkAddUniversityId" runat="server" Text="Thêm vào cột mã trường" />
                    <asp:TextBox ID="txtUniversityId" runat="server" />
                </div>
            </asp:Panel>
            <fieldset>
                <legend>Tùy chỉnh</legend>
                <div>
                    <span>Kiểu ngày</span>
                    <asp:RadioButtonList ID="rdoFormatDate" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Text="dd/MM/yy" Value="dd/MM/yy" Selected="True" />
                        <asp:ListItem Text="MM/dd/yy" Value="MM/dd/yy" />
                    </asp:RadioButtonList>
                </div>
            </fieldset>
        </fieldset>
        <fieldset id="grpUniversity" runat="server" visible="false">
            <legend>Trường Đại Học - Cao Đẳng</legend>
            <asp:Panel ID="pnlUniversity" runat="server">
                <span>
                    <asp:Literal ID="litUniversityId" runat="server" /></span>
                <asp:TextBox ID="txtUniversityName" runat="server" />
            </asp:Panel>
        </fieldset>
        <div class="error-msg">
            <asp:Literal ID="litErrorMessage" runat="server" />
        </div>
        <div class="grid">
            <asp:GridView ID="Grid" runat="server" PageSize="10" AllowPaging="True" CellPadding="4"
                ForeColor="#333333" GridLines="None">
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
        </div>
    </div>
    <uc:MapFields ID="mapField" runat="server" />
</asp:Content>
